<template>
    <div>
        <el-container style="height: 800px; border: 1px solid #eee">
            <el-aside width="300px" style="background-color: rgb(238, 241, 246)" >
                <el-menu :default-openeds="['1', '3']" style="background-color: rgb(238, 241, 246)">
                    <el-submenu index="1">
                        <template slot="title"><i class="el-icon-message"></i>联系人</template>
                        <el-submenu index="1-1">
                            <template slot="title">分组一</template>
                            <el-menu-item index="1-1-1">张三</el-menu-item>
                        </el-submenu>
                        <el-submenu index="1-2">
                            <template slot="title">分组二</template>
                            <el-menu-item index="1-2-1">李四</el-menu-item>
                        </el-submenu>
                        <el-submenu index="1-3">
                            <template slot="title">分组三</template>
                            <el-menu-item index="1-3-1">王五</el-menu-item>
                        </el-submenu>
                    </el-submenu>
                </el-menu>
            </el-aside>

            <el-container>
                <el-header style="text-align: right; font-size: 12px">
                    <el-dropdown>
                        <i class="el-icon-setting" style="margin-right: 15px"></i>
                        <el-dropdown-menu slot="dropdown">
                            <el-dropdown-item>查看</el-dropdown-item>
                            <el-dropdown-item>新增</el-dropdown-item>
                            <el-dropdown-item>删除</el-dropdown-item>
                        </el-dropdown-menu>
                    </el-dropdown>
                    <span>张三</span>
                </el-header>

                <el-main>
                    <el-tabs :tab-position="tabPosition" style="height: 200px;">
                        <el-tab-pane label="好友信息">好友信息</el-tab-pane>
                        <el-tab-pane label="好友聊天">好友聊天</el-tab-pane>
                    </el-tabs>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>


<script>
    export default {
        data() {
            return {
                tabPosition: 'top'
            }
        }
    };
</script>


<style>
    .el-header {
        background-color: #B3C0D1;
        color: #333;
        line-height: 60px;
    }

    .el-aside {
        color: #333;
    }
</style>